package edu.nf.ch05.common;

/**
 * @Author gjh
 * @Date 2025/9/28
 * @Description:
 */
public class GlobalException extends RuntimeException {

    private Integer errorCode;

    public GlobalException(Integer errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public Integer getErrorCode() {
        return errorCode;
    }
}

